#!/bin/bash
buildDate1=$(date '+%Y%m%d_%H%M%S')
# 获取 git 分支
branch=$(git rev-parse --abbrev-ref HEAD)
# 获取 commitId
commitId=$(git rev-parse --short HEAD)

pwd
#tar  --exclude='*.tar.gz' --exclude='./data' --exclude='./.git' --exclude='./dist' --exclude='./vtools' -czvf vdam_sys.${branch}.${commitId}.${buildDate1}.tar.gz .

rm -rf dcs/target/
rm -rf dps/target/
rm -rf common/target/
rm -rf proxy/target/

tar  -czvf vdam_sys.${branch}.${commitId}.${buildDate1}.tar.gz README.md common dcs docs dps pom.xml proxy scripts

